﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Owl.Contracts
{
    public interface ICrud<Entity, Key>
    {        
        Entity GetById(Key key);
        List<Entity>GetAll();
        List<Entity>GetByString(String text);
        Entity Insert(Entity entity);
        void Update(Entity entity);
        void Delete(Key key);
    }
}
